import { Article, categories } from '@/m_res/Article'
import { res } from '@/utils/jsonResult';
import {CommentParams } from "@/model/request/Comment";
import { Token } from '@/m_req/Token'
import { form } from '@/m_req/Comment'

export interface ArticleService {
    GetArticleList(text: string): Promise<res<Array<Article>>>;
    GetArticleInfo(id: number): Promise<res<null>>;
    GetCategoriesList(): Promise<res<categories[]>>;
    GetCategoriesInfo(id: number): Promise<res<Article[]>>;
    GetSearch(word: string): Promise<res<Article[]>>
    pushComment(params: CommentParams, token: Token): Promise<res<string>>
    form(params: form): Promise<res<null>>;//表单的数据接口
}